package com.aaa.web.entity;

import java.util.Date;

/**
 * @ProjectName java_web _demo_20230303_AllServlet
 * @Author 李江波
 * @Date 2023/03/03 上午 09:03
 * @Version 1.0.0
 * @Description
 */
public class Emp {
    private Integer empId;
    private String empName;
    private String sex;
    private String phoneNum;
    private String province;
    private Date hireDate;
    private Integer deptNo;
    private double salary;
    private String password;
    private String deptName;

    public Integer getEmpId() {
        return empId;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "empId=" + empId +
                ", empName='" + empName + '\'' +
                ", sex='" + sex + '\'' +
                ", phoneNum='" + phoneNum + '\'' +
                ", province='" + province + '\'' +
                ", hireDate='" + hireDate + '\'' +
                ", deptNo=" + deptNo +
                ", salary=" + salary +
                ", password='" + password + '\'' +
                '}';
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public Date getHireDate() {
        return hireDate;
    }

    public void setHireDate(Date hireDate) {
        this.hireDate = hireDate;
    }

    public Integer getDeptNo() {
        return deptNo;
    }

    public void setDeptNo(Integer deptNo) {
        this.deptNo = deptNo;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Emp(Integer empId, String empName, String sex, String phoneNum, String province, Date hireDate, Integer deptNo, double salary, String password) {
        this.empId = empId;
        this.empName = empName;
        this.sex = sex;
        this.phoneNum = phoneNum;
        this.province = province;
        this.hireDate = hireDate;
        this.deptNo = deptNo;
        this.salary = salary;
        this.password = password;
    }

    public Emp() {
    }

    public Emp(String empName, String sex, String phoneNum, String province, Date hireDate, Integer deptNo, double salary, String password) {
        this.empName = empName;
        this.sex = sex;
        this.phoneNum = phoneNum;
        this.province = province;
        this.hireDate = hireDate;
        this.deptNo = deptNo;
        this.salary = salary;
        this.password = password;
    }
}
